#region Header
//************************************************************************************
// Name: SessionFactoryElement
// Description: SessionFactoryElement
// Created On:  02-Aug-2011
// Created By:  Swathi
// Last Modified On:
// Last Modified By:
// Last Modified Reason:
//*************************************************************************************
#endregion Header

using System.Configuration;

namespace Base.Data
{
    public class SessionFactoryElement : ConfigurationElement
    {
        public SessionFactoryElement()
        {
        }

        public SessionFactoryElement(string name, string configPath)
        {
            Name = name;
            FactoryConfigPath = configPath;
        }

        [ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "Not Supplied")]
        public string Name
        {
            get { return (string) this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("factoryConfigPath", IsRequired = true, DefaultValue = "Not Supplied")]
        public string FactoryConfigPath
        {
            get { return (string) this["factoryConfigPath"]; }
            set { this["factoryConfigPath"] = value; }
        }

        [ConfigurationProperty("isTransactional", IsRequired = false, DefaultValue = false)]
        public bool IsTransactional
        {
            get { return (bool) this["isTransactional"]; }
            set { this["isTransactional"] = value; }
        }
    }
}